package com.itheima.loop;
import java.util.Random;
public class Ran{
    public static void main(String[] args){
        Random r = new Random();
        for(int i = 1; i<= 10 ;i++){
            //小括号的值 = (范围最大值-范围最小值)+1
            //加号后面是范围最小值
            int num = r.nextInt(10)+1;
            System.out.println(num);
        }
    }
}